Skip to content

SPECS: linux-tools: Update to 7.0.10 and add new patch for const qualifier fix.#381

Merged
RevySR merged 1 commit into
openRuyi-Project:mainfrom
Leetfs:linux-tools
May 26, 2026
Merged

SPECS: linux-tools: Update to 7.0.10 and add new patch for const qualifier fix.#381
RevySR merged 1 commit into
openRuyi-Project:mainfrom
Leetfs:linux-tools

Conversation

@Leetfs
Copy link
Copy Markdown
Contributor

@Leetfs Leetfs commented May 13, 2026

The patch has been merged by the upstream team, but has not yet been released into the latest version, so the patch file is named 0001.

https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/?h=perf-tools-next&id=7378b6656aa46fda56f2743d5a7c1f619c2f6f9b


The assignment of strrchr() return values to non-const char * variables triggers a -Werror=discarded-qualifiers warning when building with GCC 14.

This happens because in newer glibc versions, strrchr() returns a const char * if the input string is const.

Properly declare 'line2' and 'nl' as const char * to match the glibc function signature and ensure type safety. This avoids the need for explicit type casting and aligns with the design pattern of not modifying read-only memory in the perf tool.

@openruyi-bot openruyi-bot Bot added Community: Student contribution Used by contributors that are currently students at an educational institution. BuildSystem: misc Issue/PR not related to any BuildSystem. Target: Rolling Targeting rolling/current branch. labels May 13, 2026
@Leetfs
Copy link
Copy Markdown
Contributor Author

Leetfs commented May 13, 2026

Build log:

[ 1597s] Supplements: (linux-tools = 7.0.10-1.1.or and langpacks-ka)
[ 1597s] Processing files: linux-tools-langpack-pt-7.0.10-1.1.or.noarch
[ 1597s] Provides: linux-tools-langpack-pt = 7.0.10-1.1.or
[ 1597s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[ 1597s] Supplements: (linux-tools = 7.0.10-1.1.or and langpacks-pt)
[ 1597s] Processing files: linux-tools-langpack-zh-7.0.10-1.1.or.noarch
[ 1597s] Provides: linux-tools-langpack-zh = 7.0.10-1.1.or
[ 1597s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[ 1597s] Supplements: (linux-tools = 7.0.10-1.1.or and langpacks-zh)
[ 1597s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build/BUILDROOT
[ 1609s] Wrote: /home/abuild/rpmbuild/SRPMS/linux-tools-7.0.10-1.1.or.src.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/riscv64/linux-tools-devel-7.0.10-1.1.or.riscv64.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-ka-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-zh-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-de-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-it-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-pt-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-fr-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-cs-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/riscv64/linux-tools-7.0.10-1.1.or.riscv64.rpm
[ 1613s] Wrote: /home/abuild/rpmbuild/RPMS/riscv64/perf-7.0.10-1.1.or.riscv64.rpm
[ 1613s] Executing(rmbuild): /usr/bin/bash -e /var/tmp/rpm-tmp.8vkhfY
[ 1613s] + umask 022
[ 1613s] + cd /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1613s] + test -d /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1613s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1615s] + rm -rf /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1622s] + RPM_EC=0
[ 1622s] ++ jobs -p
[ 1622s] + exit 0
[ 1622s] ... checking for files with abuild user/group
[ 1622s] Warning: mkbaselibs missing in build root, skipping baselibs
[ 1622s] 
[ 1622s] obsworker-sg2044-0316-4 finished "build linux-tools.spec" at Sat May 23 19:29:44 UTC 2026.

@Z572
Copy link
Copy Markdown
Contributor

Z572 commented May 13, 2026

You can try sending it upstream.

@Leetfs Leetfs marked this pull request as draft May 13, 2026 16:53
@openruyi-bot openruyi-bot Bot added the Workflow: In Dev Issues that are actively being worked on by a developer. label May 23, 2026
@Leetfs Leetfs changed the title SPECS: linux-tools: fix build failure on RISC-V due to arch-specific hardware tracing. SPECS: linux-tools: Update to 7.0.10 and add new patch for const qualifier fix. May 23, 2026
@Leetfs Leetfs marked this pull request as ready for review May 23, 2026 19:38
@openruyi-bot openruyi-bot Bot added Workflow: Ready For Review Ready for review by anyone with domain expertise. and removed Workflow: In Dev Issues that are actively being worked on by a developer. labels May 23, 2026
….10.

Signed-off-by: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
@dramforever dramforever added this to the 2026.05 milestone May 26, 2026
@openruyi-bot openruyi-bot Bot added Workflow: In Review Issues that are undergoing code review and/or undergoing design review. and removed Workflow: Ready For Review Ready for review by anyone with domain expertise. labels May 26, 2026
@RevySR RevySR merged commit 0a394f0 into openRuyi-Project:main May 26, 2026
3 checks passed
@openruyi-bot openruyi-bot Bot added Workflow: Complete Applied after all MRs have merged and the issue has been verified if necessary. and removed Workflow: In Review Issues that are undergoing code review and/or undergoing design review. labels May 26, 2026
@Leetfs Leetfs deleted the linux-tools branch May 26, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BuildSystem: misc Issue/PR not related to any BuildSystem. Community: Student contribution Used by contributors that are currently students at an educational institution. Target: Rolling Targeting rolling/current branch. Workflow: Complete Applied after all MRs have merged and the issue has been verified if necessary.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants